package br.com.tcc.systemdx.persistence.hibernate;

import java.util.List;

import org.hibernate.criterion.Restrictions;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import br.com.tcc.systemdx.domain.AtributoSintoma;
import br.com.tcc.systemdx.persistence.AtributoSintomaDAO;

@Repository(AtributoSintomaDAO.BEAN_NAME)
@Transactional
public class AtributoSintomaHibernateDAOImpl extends
		AbstractEntityHibernateDAOImpl<AtributoSintoma> implements
		AtributoSintomaDAO {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4226380795327773985L;
	
	//@Override
	public List<AtributoSintoma> findAtributosRelacionados(Long atributoPaiId) {
		return findByCriteria(Restrictions.eq("parent.id", atributoPaiId));
	}

}
